<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.gxl.Entity.User"%>
<%@page import="java.util.List"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%
	 List<User> u= new ArrayList<User>();
     u =(List<User>)request.getSession().getAttribute("userlist");  %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'manager_1.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>
<body>


	<br>
	<center>
	
		<h1>企业信息</h1>
		<table border="1">
			<tr>
				<th style="width: 71px; ">编号</th>
				<th>企业名称</th>
				<th>企业地址</th>
				<th style="width: 82px; ">营业执照</th>
				<th>联系方式</th>
				<th>是否拥有权限</th>
			</tr>
			<% 
for(int i=0; i<u.size();i++){
 %>
			<tr>
				<td><%=i+1 %></td>
				<td><%=u.get(i).getUserName() %></td>
				<td><%=u.get(i).getUserWhere() %></td>
				<%request.getSession().setAttribute("companyno", u.get(i).getUserNo()); %>
				<td><a href="downloadzhizhaoBybelong">查看</td>
				<td>
					<%
  if (u.get(i).getUserPhone()==null||u.get(i).getUserPhone().equals("")) 
  	{
  		out.print("无");
  	}
  	else
  	{
 	 	out.print(u.get(i).getUserPhone());	
  	}
  %>
				</td>
				
				<td>
				<%=u.get(i).getUserYes() %>
				<form action="change_UserYes.action" method="post">
				<input type="hidden" name="companyid" value="<%=u.get(i).getId()%>">
				<input type="hidden" name="companyname" value="<%=u.get(i).getUserName() %>">
				
				<select name="change" > 
					<option selected value ="0">权限选择</option> 
					<option value="yes">同意</option> 
					<option value="no">不同意</option> 
				</select> 
				<input type="submit" value ="确定">
				</form>
				
				</td>
			</tr>


<%} %>

		</table>


	</center>





</body>
</html>
